/**
 * @Copyright:Copyright (c) 1992 - 2016
 * @Company: TengTong
 */

package com.tengtong.duang.commons.base;

/**
 * 带抛出异常的 Consumer
 * 
 * @author Jai
 *
 */
@FunctionalInterface
public interface ExConsumer<T, X extends Throwable> {

	/**
	 * 执行操作，如果有异常就抛出异常
	 * 
	 * @param t
	 * @throws X
	 */
	public void accept(T t) throws X;
}
